package youcaihuaoa.weetop.com.ui.main

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.lifecycle.Observer
import cn.wandersnail.ble.*
import com.robot.base.base.activity.GLBaseFragment
import youcaihuaoa.weetop.com.R
import youcaihuaoa.weetop.com.databinding.AppFragmentMyBinding
import youcaihuaoa.weetop.com.vm.main.MyFragmentViewModel
import kotlinx.coroutines.*
import me.goldze.mvvmhabit.BR
import java.util.*

class MyFragment : GLBaseFragment<AppFragmentMyBinding, MyFragmentViewModel>(), EventObserver {

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.app_fragment_my

    override fun initVariableId(): Int = BR.viewModel

    override fun initComponents() {
        initRefresh()
        initEvent()
        viewModel.getUser()
    }

    override fun onResume() {
        super.onResume()
        viewModel.initData()
    }
    private fun initRefresh() {
    }

    private fun initEvent() {

    }

    override fun obtainData() {
        super.obtainData()
    }

}